package com.ym.b2b.wsBuyer.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ym.b2b.wsBuyer.dao.WebServiceBuyerDao;
import com.ym.b2b.wsBuyer.service.WebServiceBuyerService;
import com.ym.b2b.wsBuyer.sqlBean.WebServiceBuyer;

@Service
public class WebServiceBuyerServiceImpl implements WebServiceBuyerService {

    @Autowired
    private WebServiceBuyerDao		dao;
    
	@Override
	public void insertBuyer(WebServiceBuyer buyer) throws Exception {
		dao.insertBuyer(buyer);
		dao.insertBuyerAddress(buyer);
		dao.insertBuyerUser(buyer);
	}

}
